{{include file="header2.html"}}
{{include file="menu2.html"}}
		<div class="web_rigth_main" style="background-color:white">
			<!--网站主体内容 S-->
			<form>
				<input type="hidden" name="table" value="goods">			<!--当前数据来源表，用于删除数据-->
				<div class="content_title_bar">
					<span>&diams;毕业生就业信息列表</span>
					<span class='btn_delete' style="float:right">删除</span>
				</div>
				<table class="content_table">
					<tr>
						<th width="40"><input type="checkbox" class="check_all" /></th>
						<th width="60">ID</th>
						
						<th>已毕业</th>
						<th>工资</th>
						<th>公司名称</th>
						<th>工作职位</th>
						<th>工作地点(省份)</th>
						<th>公司的融资情况</th>
						<th>创业 就业</th>
						<th>专业相关度</th>
						
						<th width="120">操作</th>
					</tr>
					<!--循环商品详情S-->
					{{if $result.data}}
					{{foreach item=val from=$result.data key=key}}
						<tr>
							<td><input type="checkbox" name="check_ids[]" value="{{$val.id}}" class="check_id" /></td>
							<td>{{$val.id}}</td>
							<td>{{$val.gra_year}} 年</td>
							<td>{{$val.price}}</td>
							<td>{{$val.company_name}}</td>
							<td>{{$val.position}}</td>
							<td>{{$val.province.0.province_name}}</td>
							<td>{{$val.company_type}}</td>
							<td>{{$val.type}}</td>
							<td>{{$val.related}}</td>
							<td>
								<a href="index.php?app=info&act=modify&id={{$val.id}}" class="iframe" ><span class="btn_general">修改</span></a>
								<a href="#" onclick="checked({{$val.id}})"><span class="btn_delete1">删除</span></a>
							</td>
						</tr>
					{{/foreach}}
					{{/if}}
					<!--循环商品详情E-->
					<!--分页-->
					<!-- <tr><td colspan="11" style="text-align:center"><div id="page_main">{$page_foot}</div></td></tr> -->
				</table>
			</form>
			<!--网站主体内容 E-->
		</div>
	</div>
	<script type="text/javascript">
	//全选
	$('.check_all').change(function(){
        if($(this).is(':checked')){
          $('.check_id').attr('checked',true);
          amount();
        }else{
          $('.check_id').attr('checked',false);
        }
     })

		//单挑购物车进行删除
    function checked(id){
        deletecar(id);//onclick="checked({{$val.id}})"
    }

    //多条购物车进行删除
    $(".btn_delete").click(function(){
        if($('.check_id:checked').length==0) { ui.alert("至少选择一条数据!"); return false; }
        var ids = getAllIds();
        deletecar(ids);
    })

     function deletecar(ids){
        ui.confirm('╯▂╰,真的不要我了？',function(z){
            if(z){
                $.get('{{"index.php?app=info&act=delete"|URL}}',{'ids':ids},function(result){
                    if(result.statusCode=='200'){
                        ui.success('清空成功！');
                        setTimeout(function(){
                            window.location.reload();
                        },1000);
                    }else ui.error(result.message);
                },'json');
            }
        },true);
    }

        //购物车ids
    function getAllIds(){
        var ids = "";
        $('.check_id:checked').each(function(i){
            ids += (","+$(this).val());
        });
        return ids;
    }
	</script>
{{include file="footer2.html"}}